package cn.kgc.client;

import cn.kgc.base.vo.OrderSpuInfoVo;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Map;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@Component
@Slf4j
public class PmsFeignClientImpl implements PmsFeignClient {
    @Override
    public  Result<Map<Long, OrderSpuInfoVo>> getOrderSpuInfo(HashSet<Long> spuIdSet) {
        log.error("根据spuId获得订单对应的spu信息,服务接口降级:{}",spuIdSet);
        return Result.error(null,"http://mall-pms/pms/Spu/Info/getOrderSpuInfo", HttpStatus.OK.value(),"error");
    }
}
